{% load markup %}
{% load gravatar %}
{% load django_multivoting_tags %}

{% with object as node %}
{% with request_content_type as node_content_type %}
<div class='content_row'>
    <div class='title'>
        <a href='{% url details object.id %}'>{{node.name}}</a>
    </div>
    <div class='description'>
    	{{node.description}}
    </div>
    <div class='stats'>
        <a href='{% url details object.id %}' class='img_link votes'> {% popularity node %} popularity</a>
        <a href='{% url details object.id %}' class='img_link comments'>{{node.comments.all.count}} comments</a>
        {% if node.status %}
        	<a href='{% url details object.id %}' class='img_link comments'>{{node.status}}</a>
        {% endif %}
    </div>
    <div class='author'>
        <img class="inline_gravatar" height="25" width="25" alt="Avatar for user_241_435" src="{% gravatar_for_user node.user %}"/>
            <div class='gravatar_text'>
                <a href='{% url community-profile node.user.id node.user.display_name %}'>{{node.user.profile.all.0.display_name}}</a> posted {{node.date_created|timesince}} ago
            </div>
    </div>
    {% with node.tags.all as tags %}
        {% include "django_metatagging/horizontal_tag_list.html" %}
    {% endwith %}
</div>
{% endwith %}
{% endwith %}
